<template>
  <figure>
    <img :src="src" :alt="alt" />
    <figcaption>
      <slot></slot>
    </figcaption>
  </figure>
</template>

<script>
export default {
  props: {
    alt: String,
    src: String,
  },
};
</script>

<style lang="less" scoped>
figure {
  /* position: absolute; */
  position: relative;
  width: 100%;

  img {
    border-radius: 50%;
    width: 100%;
  }
  figcaption {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 20px;
    font-family: "hanbiao";
  }
}
</style>